package com.xbs.service.hitchhiking;
/**
 * 员工管理service层
 * @author dell
 */

import java.util.List;

import com.xbs.dao.hitchhiking.EmployeeAdminDao;
import com.xbs.entity.EmployeeEntity;

public class EmpAdminService {

	private EmployeeAdminDao emp ;
	
	public EmpAdminService() {
		emp = new EmployeeAdminDao();
	}

	/**
	 * 1.查询所有员工信息
	 */
	public List<EmployeeEntity> getEmployee(){
		return emp.getAllEmployee();
	}
	
	/**
	 * 2.向员工表中插入一条数据
	 */
	public int insertEmployee(EmployeeEntity employee){
		return emp.insertEmployee(employee);
	}
	
	/**
	 * 3.根据员工身份证进行查询
	 */
	public List<EmployeeEntity> xgEmpByid(String empid){
		return emp.updateEmpByid(empid);
	}
	
	/**
	 * 4.根据员工省份证更改数据
	 */
	public int updateEmp(EmployeeEntity employee){
		return emp.updateEmp(employee);
	}
	
	/**
	 * 5.模糊查询，根据姓名，编号，身份证进行查询
	 */
	public List<EmployeeEntity> getEmpByThree(String str){
		return emp.getEmployeeByThree(str);
	}
	
}
